package com.ruoyi.user.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 user
 * 
 * @author ruoyi
 * @date 2024-11-02
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long id;

    /** 粉丝人数 */
    private Long fansNum;

    /** 关注人数 */
    private Long followerNum;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    private String password;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String imgUrl;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String name;

    /** 身份证号 */
    private String identityCardNum;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别 男1 女0 */
    @Excel(name = "性别 男1 女0")
    private String gender;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 用户身高 */
    @Excel(name = "用户身高")
    private BigDecimal height;

    /** 用户体重 */
    @Excel(name = "用户体重")
    private BigDecimal weight;

    /** 用户状态 */
    @Excel(name = "用户状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFansNum(Long fansNum) 
    {
        this.fansNum = fansNum;
    }

    public Long getFansNum() 
    {
        return fansNum;
    }
    public void setFollowerNum(Long followerNum) 
    {
        this.followerNum = followerNum;
    }

    public Long getFollowerNum() 
    {
        return followerNum;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIdentityCardNum(String identityCardNum) 
    {
        this.identityCardNum = identityCardNum;
    }

    public String getIdentityCardNum() 
    {
        return identityCardNum;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setHeight(BigDecimal height) 
    {
        this.height = height;
    }

    public BigDecimal getHeight() 
    {
        return height;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fansNum", getFansNum())
            .append("followerNum", getFollowerNum())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("imgUrl", getImgUrl())
            .append("name", getName())
            .append("identityCardNum", getIdentityCardNum())
            .append("age", getAge())
            .append("gender", getGender())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("birthday", getBirthday())
            .append("height", getHeight())
            .append("weight", getWeight())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
